package com.kaifamiao.exercises.base;

import java.util.Scanner;

public class Temperature {
    public static void main(String[] args) {
        Scanner s = new Scanner( System.in );

        System.out.println( "请输入一个华氏温度值" );
        double f = s.nextDouble();
        System.out.println( "华氏温度: " + f );

        double c = 5 * ( f - 32 ) / 9 ;
        System.out.println( "摄氏温度: " + c );

        s.close();
    }
}
